<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link href="1.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div class="app">
        <div class="box" v-for="item in data">
            <div class="img">
                <img :src="item.img">
            </div>
            <span>姓名：{{item.name}}</span>
            <span>年龄：{{item.age}}</span>
            <span>性别：{{item.sex}}</span>
            <span>总分：{{item.sum}}</span>
            <button class="btn" @click="btn" v-if="item.math>=60 & item.chinese>=60 & item.english>=80">---</button>
            <div class="scores" id="scores">
                <div class="in">
                    <span>数学：{{item.math}}</span>
                    <span>语文：{{item.chinese}}</span>
                    <span>英语：{{item.english}}</span>
                </div>
            </div>
        </div>
    </div>
    <script src="https://unpkg.com/vue@3.2.40/dist/vue.global.js"></script>
    <script>
        const show = document.getElementById("scores")
        const btn = document.getElementById("btn")
        const abc = {
            data(){
                return{
                    data:[
                        {img:"img/1.jpeg",name:'路飞',age:20,sex:'男',sum:230,math:80,chinese:70,english:80},
                        {img:"img/2.jpeg",name:'索隆',age:20,sex:'男',sum:180,math:50,chinese:50,english:80},
                        {img:"img/3.jpeg",name:'山治',age:20,sex:'男',sum:240,math:80,chinese:80,english:80}
                    ],
                }
            },methods:{
            }
        }
        Vue.createApp(abc).mount('.app')
    </script>
</body>
</html>